const executionModesList = [
  {
    key: 'signal',
    value: '信号触发执行',
    scope: ['vehicle']
  },
  {
    key: 'event',
    value: '事件触发执行',
    scope: ['cloud']
  },
  {
    key: 'period',
    value: '定时执行',
    scope: ['cloud']
  }
]

const timeType = [
  {
    name: '每天重复',
    key: 'day'
  },
  {
    name: '每周重复',
    key: 'week'
  },
  {
    name: '自定义重复',
    key: 'custom'
  },
  {
    name: '指定时间',
    key: 'fixedTime'
  }
]

const timeWeek = [
  {
    name: '星期一',
    key: '1'
  },
  {
    name: '星期二',
    key: '2'
  },
  {
    name: '星期三',
    key: '3'
  },
  {
    name: '星期四',
    key: '4'
  },
  {
    name: '星期五',
    key: '5'
  },
  {
    name: '星期六',
    key: '6'
  },
  {
    name: '星期日',
    key: '7'
  }
]

const timeUnit = [
  {
    name: '分',
    key: 'minute'
  },
  {
    name: '小时',
    key: 'hour'
  }
]

const intervalType = [
  {
    name: '高频(30秒)',
    key: 'high'
  },
  {
    name: '中频(10分钟)',
    key: 'middle'
  },
  {
    name: '低频(30分钟)',
    key: 'low'
  },
  {
    name: '自定义',
    key: 'custom'
  }
]

// 每种间隔类型对应的秒
const intervalValueMap = {
  high: 30,
  middle: 10 * 60,
  low: 30 * 60
}

export {
  executionModesList,
  timeType,
  timeWeek,
  timeUnit,
  intervalType,
  intervalValueMap
}
